import loadjs from 'loadjs';

export const loadModule = ({ module, files = [], async = false, success, error }) => {
  loadjs.isDefined(module) ? loadjs.ready(module, { success, error }) : loadjs(files, module, { async, success, error });
};
